package com.zhao.concreteState;

import com.zhao.state.ILiftState;

public class StartLift extends ILiftState {

    @Override
    public void openDoor() {
        System.out.println("打开电梯门...");
        getContext().setCurrentState(new OpeningDoor());
    }

    @Override
    public void closeDoor() {
        System.out.println("关闭电梯门...");
        getContext().setCurrentState(new CloseingDoor());
    }

    @Override
    public void startLift() {
        System.out.println("重复启动电梯...");
    }

    @Override
    public void stopLift() {
        System.out.println("停止电梯...");
        getContext().setCurrentState(new StopLift());
    }
}
